package com.xhs.open.bean;

import com.xhs.open.util.json.XhsOpenGsonBuilder;

import java.io.Serializable;

public class XhsOpenComponentAccessToken implements Serializable {
  private static final long serialVersionUID = 2134550135400443725L;

  private String componentAccessToken;

  private int expiresIn = -1;

  public static XhsOpenComponentAccessToken fromJson(String json) {
    return XhsOpenGsonBuilder.create().fromJson(json, XhsOpenComponentAccessToken.class);
  }

  public String getComponentAccessToken() {
    return componentAccessToken;
  }

  public void setComponentAccessToken(String componentAccessToken) {
    this.componentAccessToken = componentAccessToken;
  }

  public int getExpiresIn() {
    return expiresIn;
  }

  public void setExpiresIn(int expiresIn) {
    this.expiresIn = expiresIn;
  }
}
